#pragma once

#include "configuration.h"
#include <SmingCore.h>
#include <Libraries/OneWire/OneWire.h>
#include <JsonObjectStream.h>

//OneWire stuff
const uint8_t onewire_pin = 2;
extern OneWire ds;

extern unsigned long counter; // Kind of heartbeat counter

const uint8_t ConfigJsonBufferSize =
	200; // Application configuration JsonBuffer size ,increase it if you have large config
const uint16_t ConfigFileBufferSize =
	2048; // Application configuration FileBuffer size ,increase it if you have large config

//Webserver
void startWebServer();

//STA disconnecter
const uint8_t StaConnectTimeout = 20; //15 sec to connect in STA mode
void StaConnectOk();
void StaConnectFail();
